<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Young粉信息</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="applicable-device" content="mobile">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes, width=device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" href="css/style.css">
	<script src="js/jquery.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
			$.ajax({
				type: "post",
			 	url: "/personalcenter/usercenter",
			    dataType: "json",
				success: function (data) {
			    	if(data.result==0){
			    		$("#userimg").attr('src',data.headimg);
			    		$("#userpoints").html(data.points);
			    		$("#userchange").html(data.changecounts);
			    		$("#usermobile").html(data.mobile.replace(/(\d{3})\d{6}(\d{2})/,'$1******$2'));
			    		$("#userschool").html(data.school);
			    		$("#userbuilding").html(data.building);
			    		$("#useryear").html(data.grade+"年");
			    		$("#username").html(data.name);
			    		$("#usermajor").html(data.major);
			    	}else{
			    		window.location.href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe643cc1b34aa8f25&redirect_uri=http%3a%2f%2fa6.189young.com%2fpersonalcenter%2fcheckuser&response_type=code&scope=snsapi_base&state=1#wechat_redirect';
			    	}
			    }
			}); 
	 	});
	</script>
</head>
<body>
    <div class="page">
    
        <header class="user-header">
          <a href="javascript:history.go(-1);" class="btn-back posa">返回</a>
          <div class="img-box user-photo"><img src="img/icon_index_menu07.png" id="userimg" alt=""></div>
          <div class="tc user-header-info">
            <a href="user_point.html" class="user-header-info-link"><b id="userpoints"></b><span>我的积分</span></a>
            <a href="user_goods.html" class="user-header-info-link"><b id="userchange"></b><span>我的兑换</span></a>
          </div>
        </header>
        
        <div class="edit-form edit-form-static">
          <div class="edit-row clearfix">
            <div class="fl edit-label">手机号码：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="usermobile"></div></div>
          </div>

          <div class="edit-row clearfix">
            <div class="fl edit-label">学校校区：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="userschool"></div></div>
            
          </div>
          <div class="edit-row clearfix">
            <div class="fl edit-label">楼：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="userbuilding"></div></div>
            
          </div>
          <div class="edit-row clearfix">
            <div class="fl edit-label">入学年份：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="useryear"></div></div>
            
          </div>
          <div class="edit-row clearfix">
            <div class="fl edit-label">姓名：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="username"></div></div>
            
          </div>
          <div class="edit-row clearfix">
            <div class="fl edit-label">专业：</div>
            <div class="fr edit-right"><div class="edit-placeholder" id="usermajor"></div></div>
          </div>

          <div class="tr user-info-rule"><a href="user_info_rule.html">《用户信息保护规则》</a></div>
          
          <div class="tc">
            <a href="user_edit.html" class="btn btn-yellow">修 改</a>
            <a href="logoff.html" class="btn btn-orange">注 销</a>
          </div>
        </div>
    </div>

    <!--百度数据统计-->
    <script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src="https://hm.baidu.com/hm.js24866553cf6bdd25afcd437091f96447";var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();</script>

</body>
</html>
















